package kr.saeildamil.androidforstudy2.ch20;

import kr.saeildamil.androidforstudy2.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch20Main extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch20_btn01:
			intent.setClass(this, FragmentLifeCycle.class);
			break;
		case R.id.ch20_btn02:
			intent.setClass(this, FragmentTest.class);
			break;
		case R.id.ch20_btn03:
			intent.setClass(this, ReuseofFragment.class);
			break;
		case R.id.ch20_btn04:
			intent.setClass(this, FragmentManaging.class);
			break;
		case R.id.ch20_btn05:
			intent.setClass(this, TwoCounterFragment.class);
			break;
		case R.id.ch20_btn06:
			intent.setClass(this, TwoCounterFragment02.class);
			break;
		case R.id.ch20_btn07:
			intent.setClass(this, FragmentManagerTest.class);
			break;
		case R.id.ch20_btn08:
			intent.setClass(this, FragmentArgument.class);
			break;
		case R.id.ch20_btn09:
			intent.setClass(this, ListFragmentTest.class);
			break;
		case R.id.ch20_btn10:
			intent.setClass(this, WordList.class);
			break;
		case R.id.ch20_btn11:
			intent.setClass(this, MultiPaneWidth.class);
			break;
		}
		startActivity(intent);
	}
}
